﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;
using Bootstrap.MVC.Infrastructure.ClientEvent;

namespace Bootstrap.MVC.Widgets
{
    public class EventHandlerModelBase : ModelBase
    {
        public ClientEventManager Events { get; set; }
        
        public EventHandlerModelBase(ViewContext context) : base(context) {
            Events = new ClientEventManager();
        }

        public EventHandlerModelBase()
        {
            Events = new ClientEventManager();
        }
    }


    public interface IEventHandlerModelBase : IModelBase
    {
        ClientEventManager Events { get; set; }
    }
}
